package com.yi.uccn.config;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * 配置扫描接口路径
 * @author YI
 * @date 2018-8-22 18:19:45
 */
@Configuration
@MapperScan(basePackages = {"com.yi.uccn.dao"})
public class Config {
    /**
     * redis key
     */
    public static final String USER_REDIS_SESSION = "user_redis_session";

    /**
     * redis token超时时间（ms）
     */
    public static final int REDIS_TIMEOUT = 1000 * 60 * 30;

    /**
     * 文件服务器访问地址
     */
    public static String trackerIp;

    @Value("${fast.tracker.ip}")
    public void setTrackerIp(String trackerIp) {
        Config.trackerIp = trackerIp;
    }
}
